

* cd  "C:\Users\ejm5\Dropbox\Covid\Data"
* use stringency.dta, clear

use "E:\Cuong - paper\COVID\Stringen index\stringency (1).dta", clear
collapse stringencyindex inequality gdp populationsize (sum) infectedtotal, by( countrycode countryname)


	* merge 1:1   countrycode using  "E:\Cuong - paper\COVID\Stringen index\gini.dta"
	

	for var populationsize: replace X=ln(X)
	reg stringencyindex inequality gdp populationsize infectedtotal, robust


	#delimit;
	
	avplot inequality, mlabel( countryname) mlabsize(tiny) mlabposition(9) symbol(diamond) mcolor(navy) ///
		msize(vsmall) scheme(s1color) legend(rows(2) size(vsmall) ring(0) position(7) label(1 "Fitted Line") ///
		label(2 "Observed Value")) ytitle("Stringency|X (GDP, Population, Infected)", size(medsmall) margin(vsmall)) xtitle("Inequality|X (GDP, Population, Infected)", size(medsmall) margin(small));

	graph save "Graphs\Stringency.gph", replace;
